<?php
namespace app\index\controller;
use think\controller;
use think\Session;


class ComContro extends Controller{
	protected $beforeActionList = [
		'befo_Session' => ['except'=>'login,userLogin,regist,regSave,logout']
		
	];

	protected function befo_Session(){
		if(!Session::has('user')){
			return header('Location:/index/user/login');
		}
	}




}
